package com.example.demo.service.impl.flowable;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.concurrent.locks.Lock;

/**
 * 7、创建两个测试node节点
 */
@Service
public class NodeOne implements FlowNodeInterface {
    @Override
    public Object invokeNode(FlowEngine.RunData runData, Context context) {
        System.out.println("执行方法" + runData.getParamOne());
        return runData.getParamOne();
    }

    @Override
    public void afterInvoke(FlowEngine.RunData runData, Context context) {

    }

    @Override
    public String resultKey() {
        return "NodeOne";
    }
}
